sorting dictionary in python

30

d1 = dict(sorted(d.items(), key = lambda x:x[0]))

Comments

Submit
0 Comments